<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/jsp/common/tags.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Sotry Case</title>
    <link rel="stylesheet" type="text/css" href="${ctx}/css/storycase.css" />
  </head> 

  <body>
     <div id="header">
      <!--  
      <img src="images/header.gif" alt="Story Case Manage" />      
      -->
      Story Case Manage System
    </div>

    <div id="drinks">
         <p>区域管理</p> 
         <p>设备列表</p>   
         <p>策略列表</p>   
         <p>策略元数据</p>                 
    </div>

    <div id="sidebar">
         <p class="beanheading">
       NOTICE
      </p>
      <p>
                        所有输入框都必须填写.
      </p>
    </div>

    <div id="main">
       <div>
          <input type="button" name="new_button" onclick="location.href='${ctx}/editStoryCase.do?isCreateStoryCase=true'" value="新建Story"/>
       </div>
     <c:forEach var="storyCase" items="${storyCaseList}">
      <h1>${storyCase.storyid}</h1>
      <h2>${storyCase.title}</h2>
      <p>
          ${storyCase.specification} &nbsp;&nbsp;${storyCase.newtime} 
      </p>
      <div>
          
          <form action="${ctx}/editStoryCase.do" method="post">
           <input type="hidden" name="storyid" value="${storyCase.storyid}" />
           <input type="submit" name="edit" value="修改"/>
           
          
          </form>
          <form action="${ctx}/deleteStoryCase.do" method="post">
           <input type="hidden" name="storyid" value="${storyCase.storyid}" />
           <input type="submit" name="delete" value="删除"/>
          </form>
       </div>
     </c:forEach>
      
    </div>

    <div id="footer">
      &copy; 2011, Story Case
      <br />
      iCache MSS Team,all rights.
    </div>
  </body>
</html>

